package com.tarena.lbs.activity;

import com.tarena.lbs.activity.dao.mapper.ActivityMapper;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@MapperScan("com.tarena.lbs.activity.dao.mapper")
@SpringBootApplication
@EnableDubbo
public class ActivityApplication implements CommandLineRunner {

    @Autowired
    private ActivityMapper activityMapper;
    public static void main(String[] args) {
        SpringApplication.run(ActivityApplication.class, args);
    }
    @Override
    public void run(String... args) throws Exception{
        System.out.println(activityMapper); // 看是否为 null
    }

}

